package com.rpframework.website.device.domain;

import com.rpframework.core.Domain;
import com.rpframework.core.mybatis.plugin.annotation.FieldMapperAnnotation;
import com.rpframework.core.mybatis.plugin.annotation.TableMapperAnnotation;
import com.rpframework.core.mybatis.plugin.annotation.UniqueKeyType;

@TableMapperAnnotation(tableName="shopping_cart" ,uniqueKeyType = UniqueKeyType.Single, uniqueKey = "id")

public class ShoppingCart extends Domain{
	private static final long serialVersionUID = -8754693738351149819L;
	@FieldMapperAnnotation
	 Integer id;   //活动id 
	@FieldMapperAnnotation
	 String userid;   //用户
	@FieldMapperAnnotation
	String goodsid;   //首页图片
	@FieldMapperAnnotation
	 Integer number;   //活动id 
	@FieldMapperAnnotation
	Integer goodsNum;   //统计购物车里每个商品的数量
	
	User user;   //用户
	
	Goods goods;   //商品
	 
	public String getUserid() {
		return userid;
	}
	public void setUserid(String userid) {
		this.userid = userid;
	}
	public String getGoodsid() {
		return goodsid;
	}
	public void setGoodsid(String goodsid) {
		this.goodsid = goodsid;
	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public User getUser() {
		return user;
	}
	public void setUser(User user) {
		this.user = user;
	}
	public Goods getGoods() {
		return goods;
	}
	public void setGoods(Goods goods) {
		this.goods = goods;
	}
	public Integer getNumber() {
		return number;
	}
	public void setNumber(Integer number) {
		this.number = number;
	}
	@Override
	public String toString() {
		return "ShoppingCart [id=" + id + ", user=" + user + ", goods=" + goods
				+ ", number=" + number + "]";
	}
	/**
	 * @return the goodsNum
	 */
	public Integer getGoodsNum() {
		return goodsNum;
	}
	/**
	 * @param goodsNum the goodsNum to set
	 */
	public void setGoodsNum(Integer goodsNum) {
		this.goodsNum = goodsNum;
	}
	
	
	
}
